<?php

try {
    error_reporting(0);
    header('Content-Type: text/plain');
    // $url = "http://wqconline.mwa.co.th/gis/json.php";
    $choice = $_GET['choice'];
    if(  $choice == 30 ) {
        $url = "http://wqconline.mwa.co.th/gis/giswqc30pdo.php";
        $page = file_get_contents("http://172.16.195.26/ajaxservice/api/data/?url=" . $url);
        echo $page;
    }
    if( $choice == 20 ) {
        $url = "http://wqconline.mwa.co.th/gis/json.php";
        $page = file_get_contents("http://172.16.195.26/ajaxservice/api/data/?url=" . $url);
        echo $page;
    }
} catch (Exception $e) {
    echo ("Error" . " " . $e);
}
?>